/*
 * @Author: 一路向阳 tt_sunzhenfeng@163.com
 * @Date: 2024-03-13 14:49:37
 * @LastEditors: 一路向阳 tt_sunzhenfeng@163.com
 * @LastEditTime: 2024-03-13 16:57:46
 * @FilePath: \utils_react_manager\app\src\views\User\index.tsx
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
/*
 * @Author: 一路向阳 tt_sunzhenfeng@163.com
 * @Date: 2024-03-13 14:49:37
 * @LastEditors: 一路向阳 tt_sunzhenfeng@163.com
 * @LastEditTime: 2024-03-13 15:11:44
 * @FilePath: \utils_react_manager\app\src\views\User\index.tsx
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import React, { useRef } from 'react';
import { Button } from 'antd';
import CustRadio from './component/CustRadio';

const User: React.FC = () => {
  const userRef = useRef<any>(null);

  const handleClick = () => {
    if (userRef.current) {
      userRef.current.handleUpdate();
    }
  };
  
  return (
    <div>
      <CustRadio ref={userRef}/>
      <Button onClick={handleClick}>按钮</Button>
    </div>
  );
}


export default User;
